package cn.com.dhcc.turbo.entity.registry.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.turbo.entity.registry.PriorityConf;

public class PriorityConfRowWapper implements RowMapper<PriorityConf> {

	@Override
	public PriorityConf mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		PriorityConf vo = new PriorityConf();
		vo.setId(rs.getString("id"));
		vo.setOwnId(rs.getString("own_id"));
		vo.setOwnType(rs.getString("own_type"));
		vo.setLimitType(rs.getString("limit_type"));
		vo.setBeginValue(rs.getString("begin_value"));
		vo.setEndValue(rs.getString("end_value"));
		vo.setMtime(rs.getDate("mtime"));
		vo.setStatus(rs.getString("status"));
		vo.setPriority(rs.getString("priority"));
		return vo;
	}

}
